package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-05-31
 * Time: 21:53
 */
public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        Cat cat=new Cat();
        dog.name="小白";
        cat.name="小黑";
        dog.eat();
        cat.sleep();
    }
}
